package com.cheng.xbsc.mapper;

import com.cheng.xbsc.entity.Address;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface AddressMapper extends Mapper<Address> {

    Address findByUserIdAndStatus(Integer userId);

    List<Address> findByUSerId(Integer userId);

    void updateByUserIdAndStatus(Integer userId);

    void updateStatusById(@Param("id") Integer id,@Param("userId") Integer userId);
}